package com.cc.spring.resp;

public class UserInfoResp {
    private Long id;

    private String userName;

    private String password;

    private String nickName;

    private Integer permission;

    private Integer isAble;

    public UserInfoResp() {

    }

    public UserInfoResp(Long id, String userName, String password, String nickName, Integer permission, Integer isAble) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.nickName = nickName;
        this.permission = permission;
        this.isAble = isAble;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName == null ? null : nickName.trim();
    }

    public Integer getPermission() {
        return permission;
    }

    public void setPermission(Integer permission) {
        this.permission = permission;
    }

    public Integer getIsAble() {
        return isAble;
    }

    public void setIsAble(Integer isAble) {
        this.isAble = isAble;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", nickName='" + nickName + '\'' +
                ", permission=" + permission +
                ", isAble=" + isAble +
                '}';
    }
}
